{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "3cd14201-c4b6-43c8-9a08-06dfc33efa1f",
   "metadata": {},
   "outputs": [],
   "source": [
    "// 初始化 SpinalHDL 工作环境\n",
    "// 请先运行本单元\n",
    "\n",
    "val path = System.getProperty(\"user.home\") + \"/source/load-spinal.sc\"\n",
    "interp.load.module(ammonite.ops.Path(java.nio.file.FileSystems.getDefault().getPath(path)))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "845090e1-bf5a-4394-9af6-436301372271",
   "metadata": {},
   "outputs": [],
   "source": [
    "// 各种库的列表\n",
    "\n",
    "import spinal.core._\n",
    "\n",
    "import spinal.lib.bus.amba3.apb._\n",
    "import spinal.lib.bus.amba3.ahblite._\n",
    "\n",
    "import spinal.lib.bus.amba4.axi._ \n",
    "\n",
    "import spinal.lib.bus.regif._\n",
    "import spinal.lib.bus.regif.Document._\n",
    "import spinal.lib.bus.regif.AccessType._\n",
    "\n",
    "import spinal.lib.bus.misc._\n",
    "import spinal.core.sim._\n",
    "\n",
    "import spinal.lib.soc.pinsec._\n",
    "\n",
    "import scala.math"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "729ac27b-505e-4f1b-b12b-86eb6e9abd53",
   "metadata": {},
   "outputs": [],
   "source": [
    "//  在 cell 中输出 Verilog 请用 \n",
    "//  showRtl(new Pinsec(500 MHz))"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Scala",
   "language": "scala",
   "name": "scala"
  },
  "language_info": {
   "codemirror_mode": "text/x-scala",
   "file_extension": ".scala",
   "mimetype": "text/x-scala",
   "name": "scala",
   "nbconvert_exporter": "script",
   "version": "2.12.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}